//package com.jservice.listener;
//
//import com.jfinal.plugin.ehcache.CacheKit;
//import com.jservice.framework.message.Message;
//import com.jservice.framework.message.MessageListener;
//import com.jservice.framework.message.annotation.Listener;
//import com.jservice.model.SysUser;
//
///**
// * UserCacheListener
// *
// * @Author cwledit
// * @DATE 2017/5/31.
// */
//@Listener(action = { SysUser.ACTION_ADD, SysUser.ACTION_DELETE, SysUser.ACTION_UPDATE })
//public class UserCacheListener implements MessageListener{
//    @Override
//    public void onMessage(Message message) {
//        SysUser sysUser = message.getData();
//        CacheKit.remove(SysUser.CACHE_NAME,sysUser.getLoginName());
//        CacheKit.remove(SysUser.CACHE_NAME,sysUser.getId());
//    }
//}
